package commentDao;

import java.io.Serializable;
import java.util.Date;

public class CommentEntity implements Serializable {
	private long cid, cnid;
	private String ccontent, cip, cauthor;
	private Date cdate;

	public CommentEntity() {

	}

	public CommentEntity(long cid, long cnid, String ccontent, String cip,
			String cauthor, Date cdate) {
		super();
		this.cid = cid;
		this.cnid = cnid;
		this.ccontent = ccontent;
		this.cip = cip;
		this.cauthor = cauthor;
		this.cdate = cdate;
	}

	public long getCid() {
		return cid;
	}

	public void setCid(long cid) {
		this.cid = cid;
	}

	public long getCnid() {
		return cnid;
	}

	public void setCnid(long cnid) {
		this.cnid = cnid;
	}

	public String getCcontent() {
		return ccontent;
	}

	public void setCcontent(String ccontent) {
		this.ccontent = ccontent;
	}

	public String getCip() {
		return cip;
	}

	public void setCip(String cip) {
		this.cip = cip;
	}

	public String getCauthor() {
		return cauthor;
	}

	public void setCauthor(String cauthor) {
		this.cauthor = cauthor;
	}

	public Date getCdate() {
		return cdate;
	}

	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}

	@Override
	public String toString() {
		return "CommentEntity [cid=" + cid + ", cnid=" + cnid + ", ccontent="
				+ ccontent + ", cip=" + cip + ", cauthor=" + cauthor
				+ ", cdate=" + cdate + "]";
	}

}
